home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / SOURCE.BIN / Orientation.java < prev    next >
Encoding:
Java Source  |  1997-06-19  |  887 b   |  33 lines

  1. package symantec.itools.awt;
  2.  
  3. /**
  4.  * Orientation is an interface for components that can be oriented either
  5.  * vertically or horizontally.
  6.  */
  7. interface Orientation
  8. {
  9.     /**
  10.      * Constant specifying vertical orientation.
  11.      */
  12.     public final int ORIENTATION_VERTICAL   = 0;
  13.     /**
  14.      * Constant specifying horizontal orientation.
  15.      */
  16.     public final int ORIENTATION_HORIZONTAL = 1;
  17.  
  18.     /**
  19.      * Sets the component's new orientation.
  20.      * @param o desired orientation, either ORIENTATION_VERTICAL or 
  21.      * ORIENTATION_HORIZONTAL
  22.      * @see #getOrientation
  23.      */
  24.     public void setOrientation(int o);
  25.     /**
  26.      * Gets the component's current orientation.
  27.      * @return the current orientation, either ORIENTATION_VERTICAL or 
  28.      * ORIENTATION_HORIZONTAL
  29.      * @see #setOrientation
  30.      */
  31.     public int getOrientation();
  32. }
  33.